package com.ly.mpayment.persist.service.timer;

import com.ly.mpayment.persist.entity.ProductPrice;
import com.ly.mpayment.persist.entity.ProductTimer;
import com.ly.mpayment.persist.hibernate.Page;
import net.sf.json.JSONObject;

import java.util.List;
import java.util.Map;

public interface ProductTimerService {
    void saveProduct(ProductTimer timer);

    boolean updateProductTimer(JSONObject json);

    Page<ProductTimer> queryProductTimerPage(Map<String, Object> parameters, int start, int pageSize);

    List<ProductPrice> detailProductTimer(String id);

    List<ProductTimer> findExecute(String nowDateYMDHMS);

    void updateProduct(ProductTimer timer);

    boolean executeProductTimer(String id);
}
